<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>指令</title>
    <script src="node_modules/vue/dist/vue.js"></script>
</head>
<body>
<div id="app">
    <a v-bind:href="url">linker</a>
    <a v-on:click="doSomething">click</a>
</div>

<script>
    new Vue({
        el: '#app',
        data: {
            url: 'http://www.baidu.com',
            doSomething: function () {
                alert("hello")
            }
        }
    })
</script>
</body>
</html>